<?php
	include("../../../class/function.php");

	$id_subcomision=getvar('id_subcomision');
	$estatus=0;
	
	$sql1="SELECT id_usr from t_cman_usuario WHERE id_subcomision='".$id_subcomision."'";
	$res1=ejecutar($sql1);
	$var=5;
	while($row_subcomision= pg_fetch_array($res1))
	{
	if ($row_subcomision[0]['id_usr']="")
	{
	$var=6;
	echo $var;
	break;
	}

	
	}
	if ($var!= 6)
	{
	$sql="UPDATE t_cman_subcomisiones SET in_status='".$estatus."' WHERE id_subcomision='".$id_subcomision."'";
	$res=ejecutar($sql);
	$var=4;
	echo $var;
	}


?>
